<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>信审回访记录</title>
    <jsp:include page="../../import.jsp" flush="true"/>
    <style type="text/css">
        .wrap_view {
            width: 100%;
            background: #f4f5f6;
            border-radius: 8px;
        }

        .driving_view {
            width: 100%;
            /*height: 100%;*/
            overflow: hidden;
            padding: 12px 0;
            box-sizing: border-box;
        }

        .form_box {
            width: 100%;
        }

        .view_l, .view_r {
            width: 49%;
            /*height: 100%;*/
            background: #fafaf9;
            border-radius: 8px;
        }

        .view_l {
            float: left;
        }

        .view_r {
            float: right;
        }

        .title_b {
            height: 38px;
            text-align: center;
            line-height: 38px;
            font-size: 16px;
            color: #666666;
            font-weight: bold;
            margin-bottom: 10px;
            letter-spacing: 2px
        }

        .i_view {
            width: 100%;
            height: 260px;
            position: relative;
        }

        .img_b {
            width: 380px;
            height: 100%;
            padding: 3px 0;
            box-sizing: border-box;
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            overflow: hidden;
        }

        .img_b img {
            display: block;
            width: 100%;
            height: 100%;
        }

        .fieldset1.tabel_col .col_50 div.label, .fieldset1.tabel_col .col_100 div.label {
            width: 90px;
        }

        .fieldset1.tabel_col .col_50 div.field, .fieldset1.tabel_col .col_100 div.field {
            padding-left: 95px;
            /*padding-right: 5px;*/
        }

        .fieldset1.tabel_col .col_50 .field > div, .fieldset1.tabel_col .col_100 .field > div.l-text {
            /*display: block;
            width: 100% !important;*/
            overflow: hidden;
        }

        .fieldset1.tabel_col .col_50 .field div input, .fieldset1.tabel_col .col_100 .field div input {
            width: 100% !important;
        }

        .auto_v {
            height: auto
        }

        .auto_v .view_l, .view_r {
            height: auto;
        }

        .btnsBox {
            height: 40px;
            padding-top: 12px;
            text-align: center;
        }

        .clear {
            clear: both;
        }
    </style>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div>
        <div class="searchArea">
            <form id="formSet1">
                <div class="wrap_view">
                    <!-- 行驶证图片 -->
                    <div class="driving_view">
                        <div class="view_l">
                            <div class="title_b">行驶证正页图片</div>
                            <div class="i_view">
                                <div class="img_b">
                                    <c:if test="${driFirPho != null }">
                                        <img src="${driFirPho}" onclick="showimg('行驶证正面图片','${driFirPho}')"/>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                        <div class="view_r">
                            <div class="title_b">行驶证副页图片</div>
                            <div class="i_view">
                                <div class="img_b">
                                    <c:if test="${driSecPho != null}">
                                        <img src="${driSecPho}" onclick="showimg('行驶证副页图片','${driSecPho}')"/>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="driving_view auto_v">
                        <!-- 行驶证正面信息 -->
                        <div class="view_l">
                            <div class="fieldset1 tabel_col clearFix">
                                <div class="caption">
                                    <span class="title">中华人民共和国机动车行驶证正页</span>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">号牌编号</div>
                                    <div class="field">
                                        <input name="plateNo" id="plateNo" type="text" class="ui-textbox" value=""
                                               validate="{required:true, maxlength:7,minlength:7}" maxlength="7" minlength="7" onchange="plateNoChange(this)">
                                    </div>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">车辆类型</div>
                                    <div class="field">
                                        <input name="vehicleType" id="vehicleType" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_100">
                                    <div class="label">所有人</div>
                                    <div class="field">
                                        <input name="owner" id="owner" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_100">
                                    <div class="label">住址</div>
                                    <div class="field">
                                        <input name="vehAddress" id="vehAddress" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">使用性质</div>
                                    <div class="field">
                                        <input name="usePurpose" id="usePurpose" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">品牌编号</div>
                                    <div class="field">
                                        <input name="model" id="model" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_100">
                                    <div class="label">车辆识别代码</div>
                                    <div class="field">
                                        <input name="vin" id="vin" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_100">
                                    <div class="label">发动机编号</div>
                                    <div class="field">
                                        <input name="engineNo" id="engineNo" type="text" class="ui-textbox" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">注册日期</div>
                                    <div class="field">
                                        <input name="regDt" id="regDt" type="text" class="ui-datepicker" value=""
                                               validate="{required:true}">
                                    </div>
                                </div>
                                <div class="fieldBox col_50">
                                    <div class="label">发证日期</div>
                                    <div class="field">
                                        <input name="issueDt" id="issueDt" type="text" class="ui-datepicker" value=""
                                               validate="{required:true}"/>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 行驶证副页信息 -->
                        <div class="view_r">
                            <div class="fieldset1 tabel_col clearFix">
                                <div class="caption">
                                    <span class="title">中华人民共和国机动车行驶证副页</span>
                                </div>
                                <div>
                                    <div class="fieldBox col_50">
                                        <div class="label">号牌编号</div>
                                        <div class="field">
                                            <span name="plateNo1" id="plateNo1"></span>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">档案编号</div>
                                        <div class="field">
                                            <input name="fileNo" id="fileNo" type="text" class="ui-textbox" value=""/>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">核定载人数</div>
                                        <div class="field">
                                            <input name="approPassCapacity" id="approPassCapacity" type="text"
                                                   class="ui-textbox" value="">
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">总载量</div>
                                        <div class="field">
                                            <input name="grossMass" id="grossMass" type="text" class="ui-textbox" value=""/>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">整备重量</div>
                                        <div class="field">
                                            <input name="curbMass" id="curbMass" type="text" class="ui-textbox" value="">
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">核定载质量</div>
                                        <div class="field">
                                            <input name="approvedLoad" id="approvedLoad" type="text" class="ui-textbox"
                                                   value=""/>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">外廓尺寸</div>
                                        <div class="field">
                                            <input name="overallDimension" id="overallDimension" type="text" class="ui-textbox"
                                                   value="">
                                        </div>
                                    </div>
                                    <div class="fieldBox col_50">
                                        <div class="label">准牵引总质量</div>
                                        <div class="field">
                                            <input name="tractionMass" id="tractionMass" type="text" class="ui-textbox" value="">
                                        </div>
                                    </div>
                                    <div class="fieldBox col_100">
                                        <div class="label">备注</div>
                                        <div class="field">
								<textarea name="rem" id="rem" rows="3" class="l-textarea" style="width:99%"
                                          value=""></textarea>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_100">
                                        <div class="label">检验记录</div>
                                        <div class="field">
                                            <input name="inspectionRecord" id="inspectionRecord" type="text" class="ui-textbox"
                                                   value=""/>
                                        </div>
                                    </div>
                                    <div class="fieldBox col_100">
                                        <div class="label">条形码</div>
                                        <div class="field">
                                            <input name="barcode" id="barcode" type="text" class="ui-textbox" value=""/>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 确认行驶证信息 -->
                        <div class="btnsBox">
                            <span id="confirmed" onclick="confirmed()" class="sq-button sq-button-round l-dialog-btn-ok">确认行驶证信息</span>
                        </div>
                    </div>
                    <!-- 车辆图片展示 -->
                    <div class="driving_view">
                        <div class="view_l">
                            <div class="title_b">车辆正面图片</div>
                            <div class="i_view">
                                <div class="img_b">
                                    <c:if test="${driCarFrontPho != null }">
                                        <img src="${driCarFrontPho}" onclick="showimg('车辆正面图片','${driCarFrontPho}')"/>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                        <div class="view_r">
                            <div class="title_b">车辆侧面图片</div>
                            <div class="i_view">
                                <div class="img_b">
                                    <c:if test="${driCarSidePho != null}">
                                        <img src="${driCarSidePho}" onclick="showimg('车辆侧面图片','${driCarSidePho}')"/>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div>
                    <!-- =======================申请人信息============================ -->
                    <div class="fieldset1 tabel_col clearFix">
                        <div class="caption">
                            <span class="title">申请人信息</span>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label" style="">申请人姓名/身份证号</div>
                            <div class="field">
                                <span id="proposerName" name="proposerName">${proposerName}/${proposerCertNo}</span>
                                <c:if test="${certUlFileFront != null}">
                                    <a id="certFront" style="display: none" href="javascript:getCstCertPhoto('${certUlFileFront}','${certFrontUlFileName}')">身份证正面.jsp</a>
                                </c:if>
                                <c:if test="${certUlFileBack != null}">
                                    <a id="certBack" style="display: none" href="javascript:getCstCertPhoto('${certUlFileBack}','${certBackUlFileName}')">身份证反面.jsp</a>
                                </c:if>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">信审员</div>
                            <div class="field">
                                <input type="text" name="auditorName" id="auditorName" placeholder="请选择" validate="{comboSelect:true}" ltype="combobox"/><span
                                    class="requiredSymbol">*</span>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">回访电话</div>
                            <div class="field">
                                <input type="text" class="ui-textbox" value="" name="visitPhone" id="visitPhone" validate="{required:true}"/>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">回访时间</div>
                            <div class="field">
                                <input type="text" class="ui-datepicker" name="visitDate" value="" id="visitDate"
                                       validate="{required:true}"
                                       ligerui="{showTime:true}"/>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">是否本人接听</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="isSelfAnswer"/>是
                                <input type="radio" value="0" name="isSelfAnswer"/>否
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">身份信息</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="identityCd"/>一致
                                <input type="radio" value="0" name="identityCd"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">家庭住址</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="addressCd"/>一致
                                <input type="radio" value="0" name="addressCd"/>不一致
                            </div>
                        </div>

                        <div class="fieldBox col_50">
                            <div class="label">另住地址</div>
                            <div class="field">
						<textarea name="address" id="address" rows="3" class="l-textarea" style="width:99%"
                                  value="" validate="{required:true}" maxlength="200"></textarea>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">是否补录身份证</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="additionalCd"/>是
                                <input type="radio" value="0" name="additionalCd"/>否
                            </div>
                        </div>
                    </div>
                    <div class="fieldset1 tabel_col clearFix">
                        <!-- =======================驾驶证信息============================ -->
                        <div class="caption">
                            <span class="title">驾驶证信息</span>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">回访信息是否一致</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="isDriverVisitInfo"/>一致
                                <input type="radio" value="0" name="isDriverVisitInfo"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">驾照类型</div>
                            <div class="field">
                                <input name="driverType" id="driverType" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车类型</div>
                            <div class="field">
                                <input name="carType" id="carType" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">驾照状态</div>
                            <div class="field">
                                <input name="driverStates" id="driverStates" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">驾照分</div>
                            <div class="field">
                                <input name="driverScore" id="driverScore" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">驾驶证有效期</div>
                            <div class="field">
                                <input name="driverValidDate" id="driverValidDate" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">准驾车型与车辆类型</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="allowCarType"/>一致
                                <input type="radio" value="0" name="allowCarType"/>不一致
                            </div>
                        </div>
                    </div>
                    <!-- =======================车辆信息============================ -->
                    <div class="fieldset1 tabel_col clearFix">
                        <div class="caption">
                            <span class="title">车辆信息</span>
                        </div>
                        <!-- 不区分盈利方式了 -->
                        <div class="fieldBox col_50">
                            <div class="label">融资次数</div>
                            <div class="field">
                                <input name="capitalNumber" id="capitalNumber" type="text" class="ui-textbox" value="">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">回访信息是否一致</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="isCarVisitInfo"/>一致
                                <input type="radio" value="0" name="isCarVisitInfo"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">品牌型号</div>
                            <div class="field">
                                <input name="carBrand" id="carBrand" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车牌号</div>
                            <div class="field">
                                <span name="carPlateNo" id="carPlateNo"></span>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">内廊尺寸</div>
                            <div class="field">
                                <input name="innerCorSize" id="innerCorSize" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">外廊尺寸</div>
                            <div class="field">
                                <input name="outCorSize" id="outCorSize" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车身颜色</div>
                            <div class="field">
                                <input name="carColor" id="carColor" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车籍地</div>
                            <div class="field">
                                <input name="carArea" id="carArea" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">购买(注册)日期</div>
                            <div class="field">
                                <input name="buyDate" id="buyDate" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">首次入网时间</div>
                            <div class="field">
                                <input name="firstInterDate" id="firstInterDate" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">轴数</div>
                            <div class="field">
                                <input name="vclAxs" id="vclAxs" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车辆总质量</div>
                            <div class="field">
                                <input name="vclTn" id="vclTn" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">核对载质量</div>
                            <div class="field">
                                <input name="ldTn" id="ldTn" type="text" class="ui-textbox" value="" readonly="readonly">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">燃油类型</div>
                            <div class="field">
                                <input name="fuelType" id="fuelType" type="text" class="ui-textbox" value="">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">所有人名称</div>
                            <div class="field">
                                <input name="ownerName" id="ownerName" type="text" class="ui-textbox" value="" maxlength="50" onchange="ownerNameNoChange(this)">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">所有人类型</div>
                            <div class="field">
                                <input type="radio" value="1" name="ownerType"/>个人
                                <input type="radio" value="0" name="ownerType"/>公司
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">与挂靠公司关系</div>
                            <div class="field">
                                <input name="relyCompRel" id="relyCompRel" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">挂靠费</div>
                            <div class="field">
                                <input name="relyMoney" id="relyMoney" type="text" class="ui-textbox" value="" maxlength="50" validate="{required:true}">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">承租人性质</div>
                            <div class="field">
                                <input type="radio" value="1" checked="checked" name="tenantType"/>车主
                                <input type="radio" value="0" name="tenantType"/>司机
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">发动机马力</div>
                            <div class="field">
                                <input name="enginePower" id="enginePower" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">车型</div>
                            <div class="field">
                                <input type="radio" value="0" name="carType1"/>重卡
                                <input type="radio" value="1" name="carType1"/>轻卡
                                <input type="radio" value="2" name="carType1"/>中卡
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>
                    </div>
                    <!-- =======================车辆运营============================ -->
                    <div class="fieldset1 tabel_col clearFix">
                        <div class="caption">
                            <span class="title">车辆运营</span>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">主货物大类</div>
                            <div class="field">
                                <select name="mainCargoType" id="mainCargoType" data-value=" " onchange="getTripGoodsSubCd();">
                                    <option value=" " checked>请选择</option>
                                    <c:forEach items="${mainGdsTypCdList }" var="kv">
                                        <option value="${kv.key }">${kv.value }</option>
                                    </c:forEach>
                                </select>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">主运输货物</div>
                            <div class="field">
                                <select name="mainTrafficCargo" id="mainTrafficCargo" data-value=" ">
                                </select>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">运输线路</div>
                            <div class="field">
                                <input name="trafficLine" id="trafficLine" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">近2-3天行驶线路是否一致</div>
                            <div class="field">
                                <input type="radio" value="1" name="twoThridLine"/>一致
                                <input type="radio" value="0" name="twoThridLine"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">近1周内行驶线路是否一致</div>
                            <div class="field">
                                <input type="radio" value="1" name="oneWeekLine"/>一致
                                <input type="radio" value="0" name="oneWeekLine"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">上一周行驶线路是否一致</div>
                            <div class="field">
                                <input type="radio" value="1" name="firstWeekLine"/>一致
                                <input type="radio" value="0" name="firstWeekLine"/>不一致
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">司机情况（非必填）</div>
                            <div class="field">
                                <input name="driverInfo" id="driverInfo" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">货物来源（非必填）</div>
                            <div class="field">
                                <input name="cargoSource" id="cargoSource" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">自有车辆情况（非必填）</div>
                            <div class="field">
                                <input name="selftCarInfo" id="selftCarInfo" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">运营年限（非必填)</div>
                            <div class="field">
                                <input name="carBusYear" id="carBusYear" type="text" class="ui-textbox" value="" maxlength="50">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>

                        <div class="fieldBox col_50">
                            <div class="label">贷款用途</div>
                            <div class="field">
                                <textarea name="useLoan" id="useLoan" rows="3" maxlength="200" class="ui-textarea l-textarea" style="width:96%"></textarea>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">申请次数</div>
                            <div class="field">
                                <input name="askNumber" id="askNumber" type="text" class="ui-textbox" value="">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">备注</div>
                            <div class="field">
                                <textarea name="remark" id="remark" rows="3" maxlength="300" class="ui-textarea l-textarea" style="width:99%"></textarea>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label">驳回原因</div>
                            <div class="field">
                                <textarea name="remarkMsg" id="remarkMsg" rows="3" maxlength="300" class="ui-textarea l-textarea" style="width:99%"></textarea>
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>
                        <div class="fieldBox col_50">
                            <div class="label"></div>
                            <div class="field">
                            </div>
                        </div>
                    </div>

                    <div class="btnsBox">
                        <span id="saveBtns1" class="sq-button sq-button-round" onclick="saveMainData(2);" style="display: none;">审核通过</span>
                        <span id="saveBtns2" class="sq-button sq-button-round" onclick="saveMainData(3);" style="display: none;">拒单</span>
                        <span id="saveBtns3" class="sq-button sq-button-round" onclick="saveMainData(4);" style="display: none;">驳回</span>
                        <span id="saveBtns4" class="sq-button sq-button-round" onclick="saveMainData(5);" style="display: none;">保存草稿</span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    var isDetail = '${isDetail}';
    var _projectId = '${projectId}';
    var _usrId = '${usrId}';
    var _proposerName = '${proposerName}';
    var _proposerCertNo = '${proposerCertNo}';

    var _certUlFileFront = '${certUlFileFront}';
    var _certUlFileBack = '${certUlFileBack}';

    // 信审员
    var auditUsrKVListJSON = [];
    <c:if test="${not empty auditUsrKVListJSON}">
    auditUsrKVListJSON = ${auditUsrKVListJSON};
    </c:if>

    $(function () {
        auditUsrInfo();//信审人员初始化

        $('#formSet1').ligerForm({
            validate: true
        });

        if (isDetail == '1') {
            // 隐藏行驶证确认按钮
            $("#confirmed").attr("style", "display: none");
            $("#saveBtns1").attr("style", "display: none");
            $("#saveBtns2").attr("style", "display: none");
            $("#saveBtns3").attr("style", "display: none");
            $("#saveBtns4").attr("style", "display: none");
        }

        initVehicleDate();// 初始化行驶证信息
        initVisit(); // 初始化车辆、人员、运营信息
        initPersonCert(); // 初始化身份证信息
    });

    // 信审人员初始化
    function auditUsrInfo() {
        $("#auditorName").ligerComboBox({
            data: auditUsrKVListJSON,
            valueField: 'key',
            textField: 'value',
            autocomplete: function (e) {
                filter_autoComboboxData(e.key, this);
                e.show();
            },
            onChangeValue: function (value) {
                if (this.findValueByText(value) == "") {//清除输入值
                    liger.get("auditorName").setValue("");
                }
            }
        });
    }

    // 初始化身份照片按钮
    function initPersonCert() {
        if (StringUtils.isNotEmpty(_certUlFileFront)) {
            document.getElementById("certFront").style.display = "block"
        }
        if (StringUtils.isNotEmpty(_certUlFileBack)) {
            document.getElementById("certBack").style.display = "block"
        }
    }


    //初始化行驶证信息
    function initVehicleDate() {
        $.ajax({
            type: 'get',
            dataType: 'json',
            url: '<%=path%>/audit/audReturnVisit/getInsVehicleById.do',
            async: false,
            data: {id:${carId}},
            success: function (msg) {
                if (msg.success == 1) {
                    if (isDetail == 1) {
                        $('#chepaiNO').val(msg.data.plateNo);
                    }
                    $('#plateNo').val(msg.data.plateNo);
                    $('#vehicleType').val(msg.data.vehicleType);
                    $('#owner').val(msg.data.owner);
                    $('#vehAddress').val(msg.data.vehAddress);
                    $('#usePurpose').val(msg.data.usePurpose);
                    $('#model').val(msg.data.model);
                    $('#vin').val(msg.data.vin);
                    $('#engineNo').val(msg.data.engineNo);
                    $('#regDt').val(msg.data.regDt);
                    $('#issueDt').val(msg.data.issueDt);
                    $('#plateNo1').text(msg.data.plateNo);
                    $('#carPlateNo').text(msg.data.plateNo);
                    $('#fileNo').val(msg.data.fileNo);
                    $('#approPassCapacity').val(msg.data.approPassCapacity);
                    $('#grossMass').val(msg.data.grossMass);
                    $('#curbMass').val(msg.data.curbMass);
                    $('#approvedLoad').val(msg.data.approvedLoad);
                    $('#overallDimension').val(msg.data.overallDimension);
                    $('#tractionMass').val(msg.data.tractionMass);
                    $('#rem').val(msg.data.rem);
                    $('#inspectionRecord').val(msg.data.inspectionRecord);
                    $('#barcode').val(msg.data.barcode);
                    return;
                }
            },
            error: function (msg) {
                $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
            }
        });
    }

    // 确认行驶证信息按钮
    function confirmed() {
        $.ligerDialog.confirm("是否确定修改行驶证信息?", function (flag) {
            if (flag == false) return;
            var checkResult = check();
            if (checkResult) {
                var wait_dialog;
                vehConfirm(wait_dialog, "2");
            }
        });
    }

    // 修改行驶证
    function vehConfirm(waitDialog, state) {
        $.ajax({
            type: 'post',
            dataType: 'json',
            data: {
                id: ${carId},
                state: state,
                plateNo: $('#plateNo').val(),
                vehicleType: $('#vehicleType').val(),
                owner: $('#owner').val(),
                vehAddress: $('#vehAddress').val(),
                usePurpose: $('#usePurpose').val(),
                model: $('#model').val(),
                vin: $('#vin').val(),
                engineNo: $('#engineNo').val(),
                regDt: $('#regDt').val(),
                issueDt: $('#issueDt').val(),
                fileNo: $('#fileNo').val(),
                approPassCapacity: $('#approPassCapacity').val(),
                grossMass: $('#grossMass').val(),
                curbMass: $('#curbMass').val(),
                approvedLoad: $('#approvedLoad').val(),
                overallDimension: $('#overallDimension').val(),
                tractionMass: $('#tractionMass').val(),
                rem: $('#rem').val(),
                inspectionRecord: $('#inspectionRecord').val(),
                barcode: $('#barcode').val()
            },
            url: '<%=path%>/audit/audReturnVisit/modifyVehicle.do',
            beforeSend: function () {
                wait_dialog = $.ligerDialog.SQalert({
                    content: LogUtils.LOG_CMM_DATA_LOADING,
                    SQ_type: "waitting"
                });
            },
            success: function (msg) {
                wait_dialog.close();
                if (msg.success == 1) {
                    $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                    // 显示按钮
                    $("#saveBtns1").removeAttr("style");
                    $("#saveBtns2").removeAttr("style");
                    $("#saveBtns3").removeAttr("style");
                    $("#saveBtns4").removeAttr("style");
                    // 隐藏行驶证确认按钮
                    $("#confirmed").attr("style", "display: none");

                    $("#chepaiNO").val($("#plateNo").val());
                    $("#affiliatedCompany").val($("#owner").val());
                    // 获取Form表单
                    var form = liger.get("formSet1");
                    if ($("#owner").val().indexOf("公司") >= 0) {
                        form.setData({
                            vehiclesDoorCd: "2",
                        });
                    } else {
                        form.setData({
                            vehiclesDoorCd: "1",
                        });
                    }
                } else {
                    $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            },
            error: function (msg) {
                $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                wait_dialog.close();
            }
        });
    }

    // 车牌号赋值
    function plateNoChange(pl) {
        const plateNo = pl.value;
        if (plateNo) {
            $('#plateNo1').text(plateNo);
            $('#carPlateNo').text(plateNo);
        }
    }

    // 所有人名称赋值
    function ownerNameNoChange(pl) {
        const ownerName = pl.value;
        if (ownerName) {
            $('#ownerName').text(ownerName);
        }
    }

    //保存回访信息(包含承租人回访记录)
    function saveMainData(auditVisitStatus) {
        var form = liger.get("formSet1");
        if (!form.valid()) {
            $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
            return false;
        }

        const checkrelyMoney = isMoney($("#relyMoney").val());
        if (!checkrelyMoney) {
            return false;
        }

        const checkResult = checkBussData();
        if (!checkResult) {
            return false;
        }

        var data = form.getData();
        data["additionalCd"] = $('input[type=radio][name="additionalCd"]:checked').val(); // 是否补录身份证
        data["projectId"] = _projectId;//项目ID

        //承租人回访记录信息
        data["accountManagerId"] = $("#accountManagerId").val();//客户经理ID
        data["accountManagerNm"] = $("#accountManagerNm").val();//客户经理NM
        data["personnelName"] = $("#personnelName").val();//承租人姓名=回访人员姓名

        var auditorNmObj = liger.get("auditorName");
        data["auditorId"] = auditorNmObj.getValue();//信审员ID
        data["auditorNm"] = auditorNmObj.getText();//信审员NM
        data["auditVisitStatus"] = auditVisitStatus;//信审回访状态

        // 申请人信息
        data["proposerName"] = _proposerName; // 申请人姓名
        data["proposerCertNo"] = _proposerCertNo; // 申请人身份证号


        // 选择参数
        data["isSelfAnswer"] = $('input[type=radio][name="isSelfAnswer"]:checked').val(); // 是否本人接听
        data["identityCd"] = $('input[type=radio][name="identityCd"]:checked').val();     // 身份信息
        data["addressCd"] = $('input[type=radio][name="addressCd"]:checked').val();         // 家庭住址
        data["isDriverVisitInfo"] = $('input[type=radio][name="isDriverVisitInfo"]:checked').val(); // 驾驶证回访数据是否一致
        data["allowCarType"] = $('input[type=radio][name="allowCarType"]:checked').val(); // 准驾类型
        data["isCarVisitInfo"] = $('input[type=radio][name="isCarVisitInfo"]:checked').val(); // 车辆信息回访数据是否一致
        data["ownerType"] = $('input[type=radio][name="ownerType"]:checked').val(); // 所有人类型
        data["tenantType"] = $('input[type=radio][name="tenantType"]:checked').val(); // 承租人性质
        data["carType1"] = $('input[type=radio][name="carType1"]:checked').val(); // 车型
        data["twoThridLine"] = $('input[type=radio][name="twoThridLine"]:checked').val(); // 近2-3天
        data["oneWeekLine"] = $('input[type=radio][name="oneWeekLine"]:checked').val(); // 近一周
        data["firstWeekLine"] = $('input[type=radio][name="firstWeekLine"]:checked').val(); // 上一周

        var id = $("#visitId").val();
        var url = '<%=path%>/audit/audReturnVisit/addMcrCstCreditRec.do';
        var wait_dialog;
        $.ajax({
            type: 'post',
            dataType: 'json',
            data: data,
            url: url,
            beforeSend: function () {
                wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
            },
            success: function (msg) {
                wait_dialog.close();
                if (msg.success == 1) {
                    if (msg.data) {
                        $("#visitId").val(msg.data);
                    }
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                    parent.$("#searchBtn").click();
                    if (auditVisitStatus != '5') {
                        frameElement.dialog.close();
                    }


                } else {
                    $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }

    // 初始化车辆、人员、运营信息
    function initVisit() {
        var form = liger.get("formSet1");
        var _plateNo = $("#plateNo").val();
        var url = '<%=path%>/audit/audReturnVisit/getMcrVisitParam.do';
        var wait_dialog;
        $.ajax({
            type: 'post',
            dataType: 'json',
            data: {
                project: _projectId,
                isDetail: isDetail,
                usrId: _usrId,
                plateNo: _plateNo
            },
            url: url,
            beforeSend: function () {
                wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waittiligerGetComboBoxManagerng"});
            },
            success: function (msg) {
                //wait_dialog.close();
                if (msg.success == 1) {

                    mainData = msg.data;
                    // 申请人信息
                    $("#proposerName").val(msg.data.proposerName);
                    $("#proposerCertNo").val(msg.data.proposerCertNo);
                    $("#auditorName").ligerGetComboBoxManager().selectValue(msg.data.auditorId);
                    if(StringUtils.isEmpty(msg.data.visitPhone)){
                        $("#visitPhone").val('${usrMp}');
                    }else{
                        $("#visitPhone").val(msg.data.visitPhone);
                    }
                    if(StringUtils.isEmpty(msg.data.visitPhone)){
                        $("#visitDate").val('${currentDate}');
                    }else{
                        $("#visitDate").val(msg.data.visitDate);
                    }
                    $("#address").val(msg.data.address);
                    $("#visitStates").val(msg.data.visitStates);

                    // 驾驶证信息
                    $("#driverType").val(msg.data.driverType);
                    $("#carType").val(msg.data.carType);
                    $("#driverStates").val(msg.data.driverStates);
                    $("#driverScore").val(msg.data.driverScore);
                    $("#driverValidDate").val(msg.data.driverValidDate);
                    // 车辆信息
                    $("#capitalNumber").val(msg.data.capitalNumber);
                    $("#carBrand").val(msg.data.carBrand);
                    $("#carPlateNo").val(msg.data.plateNo);
                    $("#innerCorSize").val(msg.data.innerCorSize);
                    $("#outCorSize").val(msg.data.outCorSize);
                    $("#carColor").val(msg.data.carColor);
                    $("#carArea").val(msg.data.carArea);
                    $("#buyDate").val(msg.data.buyDate);
                    $("#firstInterDate").val(msg.data.firstInterDate);
                    $("#vclAxs").val(msg.data.vclAxs);
                    $("#vclTn").val(msg.data.vclTn);
                    $("#ldTn").val(msg.data.ldTn);

                    if(StringUtils.isEmpty(msg.data.fuelType)){
                        $("#fuelType").val('柴油');
                    }else{
                        $("#fuelType").val(msg.data.fuelType);
                    }
                    if(StringUtils.isNotEmpty(msg.data.ownerName)){
                        $("#ownerName").val(msg.data.ownerName);
                    }

                    $("#relyCompRel").val(msg.data.relyCompRel);
                    $("#relyMoney").val(msg.data.relyMoney);
                    $("#enginePower").val(msg.data.enginePower);

                    // 车辆运营信息
                    form.setData({
                        mainCargoType: msg.data.mainCargoType,
                        mainTrafficCargo: msg.data.mainTrafficCargo
                    });
                    $("#trafficLine").val(msg.data.trafficLine);
                    $("#driverInfo").val(msg.data.driverInfo);
                    $("#cargoSource").val(msg.data.cargoSource);
                    $("#selftCarInfo").val(msg.data.selftCarInfo);
                    $("#carBusYear").val(msg.data.carBusYear);
                    $("#useLoan").val(msg.data.useLoan);
                    $("#askNumber").val(msg.data.askNumber);
                    $("#remark").val(msg.data.remark);
                    $("#remarkMsg").val(msg.data.remarkMsg);

                    // 单选按钮
                    $("input[type=radio][name='isSelfAnswer'][value='" + msg.data.isSelfAnswer + "']").prev(".l-radio").click();
                    $("input[type=radio][name='identityCd'][value='" + msg.data.identityCd + "']").prev(".l-radio").click();
                    $("input[type=radio][name='addressCd'][value='" + msg.data.addressCd + "']").prev(".l-radio").click();
                    $("input[type=radio][name='isDriverVisitInfo'][value='" + msg.data.isDriverVisitInfo + "']").prev(".l-radio").click();
                    $("input[type=radio][name='allowCarType'][value='" + msg.data.allowCarType + "']").prev(".l-radio").click();
                    $("input[type=radio][name='isCarVisitInfo'][value='" + msg.data.isCarVisitInfo + "']").prev(".l-radio").click();
                    $("input[type=radio][name='ownerType'][value='" + msg.data.ownerType + "']").prev(".l-radio").click();
                    $("input[type=radio][name='tenantType'][value='" + msg.data.tenantType + "']").prev(".l-radio").click();
                    $("input[type=radio][name='carType1'][value='" + msg.data.carType1 + "']").prev(".l-radio").click();
                    $("input[type=radio][name='twoThridLine'][value='" + msg.data.twoThridLine + "']").prev(".l-radio").click();
                    $("input[type=radio][name='oneWeekLine'][value='" + msg.data.oneWeekLine + "']").prev(".l-radio").click();
                    $("input[type=radio][name='firstWeekLine'][value='" + msg.data.firstWeekLine + "']").prev(".l-radio").click();

                    getTripGoodsSubCd();
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                } else {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }

    //主货物大类change事件
    function getTripGoodsSubCd() {
        var _PCode = $("#mainCargoType").val();//获取主货物大类的value
        if (StringUtils.isEmpty(_PCode)) return;
        $.ajax({
            type: 'post',
            dataType: 'json',
            data: {PCode: _PCode},
            /* 获取货品下拉框的数据 */
            url: '<%=path%>/audit/audCreditInfo/getGoodsTypJSON.do',
            success: function (msg) {
                if (msg.success == 1) {
                    //主运输货物
                    var goods = $("#mainTrafficCargo");
                    if (goods.length) {
                        $("#mainTrafficCargo").empty();
                        $("#mainTrafficCargo").append("<option value=''>请选择</option>");
                        $.each(msg.data, function (index, obj) {
                            var option = "<option value='" + obj.key + "'>" + obj.value + "</option>";
                            $(option).appendTo("#mainTrafficCargo");
                            liger.get("mainTrafficCargo").setSelect();
                        });
                        $("#mainTrafficCargo").add_ligerFormEditor();
                    }
                    SetIframe_height();
                    if (mainData && mainData.mainTrafficCargo) {
                        var form = liger.get("formSet1");
                        form.setData({
                            mainTrafficCargo: mainData.mainTrafficCargo,
                        });
                    }
                } else {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }


    // 禁用属性
    function disableParam() {
        // 禁用申请人信息
        if (liger.get("proposerName")) {
            liger.get("proposerName").setDisabled(true);
        }
        if (liger.get("proposerCertNo")) {
            liger.get("proposerCertNo").setDisabled(true);
        }
        if (liger.get("auditorName")) {
            liger.get("auditorName").setDisabled(true);
        }
        if (liger.get("visitPhone")) {
            liger.get("visitPhone").setDisabled(true);
        }
        if (liger.get("visitDate")) {
            liger.get("visitDate").setDisabled(true);
        }
        if (liger.get("isSelfAnswer")) {
            liger.get("isSelfAnswer").setDisabled(true);
        }
        if (liger.get("identityCd")) {
            liger.get("identityCd").setDisabled(true);
        }
        if (liger.get("addressCd")) {
            liger.get("addressCd").setDisabled(true);
        }
        if (liger.get("address")) {
            liger.get("address").setDisabled(true);
        }
        if (liger.get("visitStates")) {
            liger.get("visitStates").setDisabled(true);
        }

        // 驾驶证信息
        if (liger.get("isDriverVisitInfo")) {
            liger.get("isDriverVisitInfo").setDisabled(true);
        }
        if (liger.get("driverType")) {
            liger.get("driverType").setDisabled(true);
        }
        if (liger.get("carType")) {
            liger.get("carType").setDisabled(true);
        }
        if (liger.get("driverStates")) {
            liger.get("driverStates").setDisabled(true);
        }
        if (liger.get("driverScore")) {
            liger.get("driverScore").setDisabled(true);
        }
        if (liger.get("driverValidDate")) {
            liger.get("driverValidDate").setDisabled(true);
        }
        if (liger.get("allowCarType")) {
            liger.get("allowCarType").setDisabled(true);
        }

        // 车辆信息
        if (liger.get("capitalNumber")) {
            liger.get("capitalNumber").setDisabled(true);
        }
        if (liger.get("isCarVisitInfo")) {
            liger.get("isCarVisitInfo").setDisabled(true);
        }
        if (liger.get("carBrand")) {
            liger.get("carBrand").setDisabled(true);
        }
        if (liger.get("plateNo")) {
            liger.get("plateNo").setDisabled(true);
        }
        if (liger.get("innerCorSize")) {
            liger.get("innerCorSize").setDisabled(true);
        }
        if (liger.get("outCorSize")) {
            liger.get("outCorSize").setDisabled(true);
        }
        if (liger.get("carColor")) {
            liger.get("carColor").setDisabled(true);
        }
        if (liger.get("carArea")) {
            liger.get("carArea").setDisabled(true);
        }
        if (liger.get("buyDate")) {
            liger.get("buyDate").setDisabled(true);
        }
        if (liger.get("firstInterDate")) {
            liger.get("firstInterDate").setDisabled(true);
        }
        if (liger.get("vclAxs")) {
            liger.get("vclAxs").setDisabled(true);
        }
        if (liger.get("vclTn")) {
            liger.get("vclTn").setDisabled(true);
        }
        if (liger.get("ldTn")) {
            liger.get("ldTn").setDisabled(true);
        }
        if (liger.get("fuelType")) {
            liger.get("fuelType").setDisabled(true);
        }
        if (liger.get("ownerName")) {
            liger.get("ownerName").setDisabled(true);
        }
        if (liger.get("ownerType")) {
            liger.get("ownerType").setDisabled(true);
        }
        if (liger.get("relyCompRel")) {
            liger.get("relyCompRel").setDisabled(true);
        }
        if (liger.get("relyMoney")) {
            liger.get("relyMoney").setDisabled(true);
        }
        if (liger.get("tenantType")) {
            liger.get("tenantType").setDisabled(true);
        }
        if (liger.get("enginePower")) {
            liger.get("enginePower").setDisabled(true);
        }
        if (liger.get("carType1")) {
            liger.get("carType1").setDisabled(true);
        }

        // 车辆运营信息
        if (liger.get("mainCargoType")) {
            liger.get("mainCargoType").setDisabled(true);
        }
        if (liger.get("mainTrafficCargo")) {
            liger.get("mainTrafficCargo").setDisabled(true);
        }
        if (liger.get("trafficLine")) {
            liger.get("trafficLine").setDisabled(true);
        }
        if (liger.get("twoThridLine")) {
            liger.get("twoThridLine").setDisabled(true);
        }
        if (liger.get("oneWeekLine")) {
            liger.get("oneWeekLine").setDisabled(true);
        }
        if (liger.get("firstWeekLine")) {
            liger.get("firstWeekLine").setDisabled(true);
        }
        if (liger.get("driverInfo")) {
            liger.get("driverInfo").setDisabled(true);
        }
        if (liger.get("cargoSource")) {
            liger.get("cargoSource").setDisabled(true);
        }
        if (liger.get("selftCarInfo")) {
            liger.get("selftCarInfo").setDisabled(true);
        }
        if (liger.get("carBusYear")) {
            liger.get("carBusYear").setDisabled(true);
        }
        if (liger.get("useLoan")) {
            liger.get("useLoan").setDisabled(true);
        }
        if (liger.get("askNumber")) {
            liger.get("askNumber").setDisabled(true);
        }
        if (liger.get("remark")) {
            liger.get("remark").setDisabled(true);
        }
    }

    // 检查基本信息
    var checkBussData = function () {
        // 所有人类型
        var ownerType = $('input[type=radio][name="ownerType"]:checked').val();
        if (StringUtils.isEmpty(ownerType)) {
            $.ligerDialog.SQalert({
                content: "所有人类型不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 回访信息是否一致（车辆信息）
        var isCarVisitInfo = $('input[type=radio][name="isCarVisitInfo"]:checked').val();
        if (StringUtils.isEmpty(isCarVisitInfo)) {
            $.ligerDialog.SQalert({
                content: "车辆信息回访信息是否一致不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 准驾车型与车辆类型
        var allowCarType = $('input[type=radio][name="allowCarType"]:checked').val();
        if (StringUtils.isEmpty(allowCarType)) {
            $.ligerDialog.SQalert({
                content: "准驾车型与车辆类型不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 回访信息是否一致（驾驶证）
        var isDriverVisitInfo = $('input[type=radio][name="isDriverVisitInfo"]:checked').val();
        if (StringUtils.isEmpty(isDriverVisitInfo)) {
            $.ligerDialog.SQalert({
                content: "驾驶证回访信息是否一致不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 家庭住址
        var addressCd = $('input[type=radio][name="addressCd"]:checked').val();
        if (StringUtils.isEmpty(addressCd)) {
            $.ligerDialog.SQalert({
                content: "家庭住址不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 身份信息
        var identityCd = $('input[type=radio][name="identityCd"]:checked').val();
        if (StringUtils.isEmpty(identityCd)) {
            $.ligerDialog.SQalert({
                content: "身份信息不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 是否本人接听
        var isSelfAnswer = $('input[type=radio][name="isSelfAnswer"]:checked').val();
        if (StringUtils.isEmpty(isSelfAnswer)) {
            $.ligerDialog.SQalert({
                content: "是否本人接听不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        // 车型校验
        var carType1 = $('input[type=radio][name="carType1"]:checked').val();
        if (StringUtils.isEmpty(carType1)) {
            $.ligerDialog.SQalert({
                content: "车型不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }

        // 承租人性质校验
        var tenantType = $('input[type=radio][name="tenantType"]:checked').val();
        if (StringUtils.isEmpty(tenantType)) {
            $.ligerDialog.SQalert({
                content: "承租人性质不能为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        return true;
    }


    // 检查 行驶证信息
    var check = function () {
        var no1 = $("#plateNo").val();
        if (no1 == null || no1.trim() == '') {
            $.ligerDialog.SQalert({
                content: "行驶证正页车牌号为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var vehicleTypeVal = $('#vehicleType').val();
        if (vehicleTypeVal === null || vehicleTypeVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "车辆类型为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var ownerVal = $('#owner').val();
        if (ownerVal === null || ownerVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "所有人为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var vehAddressVal = $('#vehAddress').val();
        if (vehAddressVal === null || vehAddressVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "住址为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }

        var usePurposeVal = $('#usePurpose').val();
        if (usePurposeVal === null || usePurposeVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "使用性质为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var modelVal = $('#model').val();
        if (modelVal === null || modelVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "品牌编号为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }

        var vinVal = $('#vin').val();
        if (vinVal === null || vinVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "车辆识别代码为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var engineNoVal = $('#engineNo').val();
        if (engineNoVal === null || engineNoVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "发动机编号为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var regDtVal = $('#regDt').val();
        if (regDtVal === null || regDtVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "注册日期为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        var issueDtVal = $('#issueDt').val();
        if (issueDtVal === null || issueDtVal.trim() === '') {
            $.ligerDialog.SQalert({
                content: "发证日期为空!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        return true;
    }

    // 获取身份证照片信息
    function getCstCertPhoto(path, fileName) {
        if (SQ.regs.img.test(fileName)) {
            window.__ImgSrc = path;
            window.__ImgTit = fileName;
            window.open('<%=path%>/project/prjbscinfo/imgWinOpen.do', '', 'location=yes, width=800, height=600');
        } else {
            window.open(path);
        }
    }

    function isMoney(arg) {//22,111,22.11   判断是否是金额
        var a=/^(([1-9][0-9]*\.[0-9][0-9]*)|([0]\.[0-9][0-9]*)|([1-9][0-9]*)|([0]{1}))$/;
        if(!a.test(arg)){
            $.ligerDialog.SQalert({
                content: "请输入正确的挂靠费!",
                SQ_type: "error",
                SQ_showButtons: true,
                SQ_onBtnclick: function (item, Dialog) {
                    console.log(item, Dialog);
                },
            });
            return false;
        }
        return true;
    }

</script>

<div class="ClearLine"></div>
</body>
</html>
		